package org.jeecg.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.domain.dto.HistoryOrdersDto;
import org.jeecg.domain.po.HistoryOrdersSync;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.domain.vo.HistoryOrderVO;

import java.util.List;

/**
* @author 32327
* @description 针对表【history_orders_sync(历史订单完成15天后同步到历史订单同步表中，通过canal同步到历史订单库中；1天后删除（删除条件当天数据和历史订单库中的订单数据数量一致）)】的数据库操作Mapper
* @createDate 2024-12-25 14:33:29
* @Entity org.jeecg.domain.po.HistoryOrdersSync
*/
@Mapper
public interface HistoryOrdersSyncMapper extends BaseMapper<HistoryOrdersSync> {
//    查询历史订单（分页）
    List<HistoryOrderVO> findPage(@Param("page") Page<HistoryOrderVO> page,@Param("dto") HistoryOrdersDto dto);
//    历史订单根据id查询历史订单
    HistoryOrdersSync selectHistoryById(@Param("id") String id);
}




